const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name:{type:String},
    parent: {  ref: "Category",
    type: mongoose.Schema.Types.ObjectId }
})

module.exports = mongoose.model('Category',schema)